package com.web.kdl.entity.site;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author： shulibin
 * @Date： 2025/7/25 8:30
 * @Describe：
 */
@Data
@TableName("site")
public class Site implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //  站点名称
    private String sumSite;
    //  坐标: 经度
    private String longitude;
    //  坐标: 纬度
    private String latitude;
    //  站点介绍
    private String description;
    //  站点飞轮数
    @TableField(value = "wheel_number")
    private int wheelNumber;
    @TableField("start_register_address")
    private Integer startRegisterAddress;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
